package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/8/2 0002
 **/
@Data
@ApiModel("字体内容")
public class GoodsFieldContentVo {
    @ApiModelProperty(value = "字段内容ID，新增时不必传，修改时必传")
    private Long id;

    @Length(max = 20, message = "单选/多选项内容字符长度限制20个以空")
    @ApiModelProperty(value = "单选/多选内容", required = true)
    private String val;

    public GoodsFieldContentVo(){}

    public GoodsFieldContentVo(Long id, String val){
        this.id = id;
        this.val = val;
    }
}
